import numpy as np
import matplotlib.pyplot as plt

data = np.array([1,2,3,4,5])
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(data)

plt.show()
